package cn.txy.openfeign;

import cn.txy.constants.AllConsts;
import cn.txy.pojo.domain.LoginVo;
import cn.txy.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;


@FeignClient(value = AllConsts.Remote.SERVICE_NAME_UAA,
        fallbackFactory = UaaOpenFeignFallbackFactory.class)
public interface UaaOpenFeign {
    @PostMapping(AllConsts.Remote.REMOTE_PREFLIX+"/register")
    public JSONResult register(@RequestBody @Valid LoginVo loginVo);
}
